<?php

function displayLoginForm($method, $action, $headerTxt, $usernameTxt, $passwdTxt, $submitTxt) {
	
	$method = isset($method) ? $method : "POST";
	$headerTxt = isset($headerTxt) ? $headerTxt : "Log in";
	$usernameTxt = isset($usernameTxt) ? $usernameTxt : "Username";
	$passwdTxt = isset($passwdTxt) ? $passwdTxt : "Password";
	$submitTxt = isset($submitTxt) ? $submitTxt : "Submit";
	
	echo "<p>$headerTxt</p>";
	echo "<form method=\"$method\" action=\"$action\">";
	echo "<p>$usernameTxt: <input type=\"text\" name=\"username\"> </p>";
	echo "<p>$passwdTxt: <input type=\"password\" name=\"password\"> </p>";
	echo "<p><input type=\"submit\" name=\"submit\" value=\"$submitTxt\"> </p>";
}

?>